package com.taoym.voucher.admin.entity.dto;

import io.swagger.annotations.ApiParam;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @coder taoym
 * @datetime 2021/8/13 20:41
 * @desc
 */
@Data
public class XcxAddTextDTO implements Serializable {

    @ApiParam(value = "编号")
    private Integer id;
    @ApiParam(value = "文本")
    @NotNull(message = "文本不能为空")
    private List<Value> texts;
    @ApiParam(value = "文本类型")
    @NotNull(message = "文本类型不能为空")
    private Integer type;

    @Data
    public static class Value implements Serializable {
        @ApiParam(value = "文本值")
        private String value;
    }
}
